import * as React from "react";
import * as ReactDOM from "react-dom";

import "./CustomerGetCustomerList.less";
import NavBar from "../Components/NavBar/NavBar";
import {getParam} from "../../utils";


export interface CustomerGetCustomerListProps {

}

export interface State {

}

export default class CustomerGetCustomerList extends React.Component<CustomerGetCustomerListProps, State> {
    //默认属性
    static readonly defaultProps: CustomerGetCustomerListProps = {};

    constructor(props: CustomerGetCustomerListProps) {
        super(props);
        //默认状态
        this.state = {};
    }

    //组件挂载后回调
    componentDidMount() {
        document.title = `${getParam('name')}下级列表`;
        console.log(getParam('id'));
    }

    render() {
        return <div className="CustomerGetCustomerList">
            <NavBar title={`${getParam('name')}下级列表`}/>

            <div className="item">
                <div className="flex_1">
                    <strong>蒋明军 - 县级代理商</strong>
                    <p>微信号:18850990918</p>
                    <p>手机号:<a href="tel:18850990918">18850990918</a></p>
                    <p>授权号:ABDIF37</p>
                    <p>上级名称:林金山</p>
                </div>
                <img src="http://haijisz8.hyxmt.cn/Upload/ShareUrl/20180613/201806132029337114327.jpg"/>
            </div>

        </div>
    }
}
